import { createApp } from "vue";
import vuetify from "../plugins/vuetify";
import router from "@/router";
export default function create(Component, props) {
  const div = document.createElement("div");

  const vm = createApp(Component, {
    ...props,
  });
  vm.mount(div);
  vm.use(router);
  vm.use(vuetify);
  document.body.appendChild(div);
  return { vm, div };
}
